const state = () => ({
  browse: false,
  browsetext: [],
  //   当前商品详情id
  productId: "",
});
const getters = {};
const mutations = {
  setBrowse(state, browse) {
    state.browse = browse;
  },
  setBrowseText(state, browseText) {
    state.browsetext = browseText;
    console.log(state.browsetext);
  },
  setProductId(state, productId) {
    state.productId = productId;
  },
};
const actions = {};
export default {
  state,
  getters,
  mutations,
  actions,
};
